
SOURCES += \
    $$PWD/controlwidget.cpp \
    $$PWD/myrect.cpp \
    $$PWD/screen.cpp \
    $$PWD/qslabel.cpp \
    $$PWD/pensetting.cpp \
    $$PWD/amplifier.cpp \
    $$PWD/screenshot.cpp \
    $$PWD/imageediter.cpp \
    $$PWD/editimagewidget.cpp
    

HEADERS += \
    $$PWD/controlwidget.h \
    $$PWD/myrect.h \
    $$PWD/screen.h \
    $$PWD/qslabel.h \
    $$PWD/pensetting.h \
    $$PWD/amplifier.h \
    $$PWD/screenshot.h \
    $$PWD/wndhelper.h \
    $$PWD/imageediter.h \
    $$PWD/editimagewidget.h

win32{
    SOURCES += $$PWD/wndhelper.cpp

    LIBS += -lDwmapi \
        -lUser32
}

mac{
    SOURCES += $$PWD/wndhelper.mm

    LIBS += -framework CoreFoundation
    LIBS += -framework Foundation
    LIBS += -framework AVFoundation
    LIBS += -framework CoreServices
    LIBS += -framework Carbon
    LIBS += -framework Quartz
    LIBS += -framework CoreData
    LIBS += -framework AppKit
    LIBS += -framework SystemConfiguration

    QMAKE_LFLAGS += -F /System/Library/Frameworks/AVFoundation.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/CoreFoundation.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/Foundation.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/Carbon.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/Quartz.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/CoreData.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/AppKit.framework/
    QMAKE_LFLAGS += -F /System/Library/Frameworks/SystemConfiguration.framework/
}


FORMS += \
    $$PWD/controlwidget.ui \
    $$PWD/pensetting.ui

RESOURCES += \
    $$PWD/res.qrc
